cmake_minimum_required(VERSION 3.16)
project(WebServer)

set(CMAKE_CXX_STANDARD 11)

SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -std=c++11 -pthread")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall -std=c++11 -pthread")

add_executable(WebServer server.cpp
        src/EventLoop.cpp
        src/InetAddress.cpp
        src/Server.cpp
        src/Socket.cpp
        src/util.cpp
        src/Acceptor.cpp
        src/Channel.cpp
        src/Connection.cpp
        src/Epoll.cpp
        src/Buffer.cpp
        src/ThreadPoll.cpp
        )